package com.fnzn.entranceGuard.service;

import com.fnzn.entranceGuard.entity.GuardDevice;
import com.baomidou.mybatisplus.service.IService;
import com.fnzn.entranceGuard.entity.power.PowerDevice;
import com.fnzn.entranceGuard.vo.DeviceTree;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sxf
 * @since 2018-06-25
 */
public interface IGuardDeviceService extends IService<GuardDevice> {

    List<DeviceTree> listTree(String userName);

    Integer getMaxSortByCommunityId(String communityId);

    Integer getCommunityCodeByDeviceId(String deviceId);

    GuardDevice getDeviceCodeByDeviceId(String deviceId);

    GuardDevice getByType(Integer companyId,String type);

    List<PowerDevice> getPowerDeviceByCompany(Integer companyId);
}
